package com.hznc.wcs.entity.bpm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.entity.BaseModel;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
* 任务抄送 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-06-26
* Copyright © MyCorp
*/

@TableName("mdl_bpm_process_instance_copy")
@Getter @Setter @Accessors(chain = true)
public class BpmProcessInstanceCopy extends BaseModel {
    private static final long serialVersionUID = 1357995107405895101L;
     /**
     * 流程发起人
     */
     @NotNull(message = "流程发起人不能为空")
     @Length(max=32, message="流程发起人长度应小于32")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String startUserId;

     /**
     * 流程实例名称
     */
     @NotNull(message = "流程实例名称不能为空")
     @Length(max=100, message="流程实例名称长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String instanceName;

     /**
     * 流程实例ID
     */
     @NotNull(message = "流程实例ID不能为空")
     @Length(max=100, message="流程实例ID长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String instanceId;

     /**
     * 流程分类
     */
     @NotNull(message = "流程分类不能为空")
     @Length(max=100, message="流程分类长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String category;

     /**
     * 任务ID
     */
     @NotNull(message = "任务ID不能为空")
     @Length(max=100, message="任务ID长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String taskId;

     /**
     * 任务名称
     */
     @NotNull(message = "任务名称不能为空")
     @Length(max=100, message="任务名称长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String taskName;

     /**
      * 抄送人
      */
     @NotNull(message = "任务名称不能为空")
     @Length(max=100, message="任务名称长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String fromUserId;

     /**
     * 被抄送人
     */
     @NotNull(message = "被抄送人不能为空")
     @Length(max=32, message="被抄送人长度应小于32")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String copyUserId;


}